package PAT;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class PAT1004 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        List[] nodes = new ArrayList[3];
        while (m-- > 0) {
            scanner.nextInt();
        }
    }
}
